package star.cloud.asme.asmePerson.asmePersonInfo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Transient;
import lombok.*;
import star.cloud.asme.base.mybatis.IBaseEntity;
import star.cloud.asme.system.user.User;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Entity(name = "senpec_asme_person_info")
@TableName("senpec_asme_person_info")
public class AsmePersonInfo extends IBaseEntity<AsmePersonInfo> {
    private String name;
    private String username;
    private String workNo;
    private Integer utTime = 0;
    private Integer rtTime = 0;
    private Integer mtTime = 0;
    private Integer ptTime = 0;
    private Integer ltTime = 0;
    private Integer etTime = 0;
    private Integer vtTime = 0;
    @Transient
    @TableField(exist = false)
    private Integer totalTime;
    @Transient
    @TableField(exist = false)
    private User user;
}
